package com.geping.etl.common.exceptoin;

/**
 * @Author jianfeng.zhu
 * @Description 系统错误异常定义
 * @Date 15:09 2021/9/7
 **/
public enum SystemCode {

    BEIXIAN_SYN_OFF("5000", "北现同步账号开关未开启"),
    BEIXIAN_APP_AUTH_FAIL("5001", "北现业务系统认证不匹配"),
    BEIXIAN_USER_ALREADY_CREATE("5002", "北现账户信息已存在"),
    BEIXIAN_USER_NOT_CREATE("5003", "北现账户信息不存在"),
    BEIXIAN_ORG_CODE_NOE_CREATE("5004", "北现组织机构代码不存在"),
    BEIXIAN_DEPARTMENT_NAME_IS_NULL("5005", "北现部门名称为空"),
    BEIXIAN_DEPARTMENT_NOE_CREATE("5005", "北现部门信息不存在"),
    BEIXIAN_ROLE_NOT_CREATE("5006","北现角色信息不存在"),


    SYSTEM_DB_FAIL("1000", "修改数据库失败,请联系管理员"),
    ;


    private String errCode;

    private String errMsg;

    SystemCode(String errCode, String errMsg) {
        this.errCode = errCode;
        this.errMsg = errMsg;
    }

    public String getErrCode() {
        return errCode;
    }

    public void setErrCode(String errCode) {
        this.errCode = errCode;
    }

    public String getErrMsg() {
        return errMsg;
    }

    public void setErrMsg(String errMsg) {
        this.errMsg = errMsg;
    }
}
